import request from '@/utils/request'


export function getMedicalInfo(params) {
  return request({
    url: '/web/business/medicalInfo/page',
    method: 'get',
    params: params
  })
}

export function getMedicalInfoById(id) {
  return request({
    url: '/web/business/medicalInfo/page',
    method: 'get',
    params: id
  })
}

export function addMedical(param) {
  return request({
    url: '/web/business/medicalInfo',
    method: 'post',
    data: param
  })
}

export async function updateMedical(param) {
  return request({
    url: '/web/business/medicalInfo',
    method: 'put',
    data: param
  })
}

export function deleteMedical(id) {
  return request({
    url: '/web/business/medicalInfo/'+id,
    method: 'delete'
  })
}

